Component({
    properties: {
        list: {
            type: Array
        }
    },
    methods: {
        // 点击商品,进入商品详情页面
        goGoodsDetail(event) {
            // 商品id
            const goodsId = event.currentTarget.dataset.goodsid
            wx.navigateTo({
                url: `/pages/goodsDetail/goodsDetail?goodsId=${goodsId}`,   
            })
        }
    }
})